package DataClass;

/**
 * DROP TABLE IF EXISTS Book;
 * CREATE TABLE Book (
 *     BID CHAR(4) PRIMARY KEY,
 *     BName VARCHAR(500),
 *     BEditiontime INT,
 *     BAuthor VARCHAR(32),
 *     BPosition INT
 * );
 * @since 2024-06-03
 * @author yooo_fan
 */
public class Book {
    private String BID;

    private String BName;

    private Integer BEditiontime;

    private String BAuthor;

    private Integer BPosition;

    public Book(String BID, String BName, Integer BEditiontime, String BAuthor, Integer BPosition) {
        this.BID = BID;
        this.BName = BName;
        this.BEditiontime = BEditiontime;
        this.BAuthor = BAuthor;
        this.BPosition = BPosition;
    }

    // Getters ans setters

    public Integer getBPosition() {
        return BPosition;
    }

    public String getBID() {
        return BID;
    }

    public String getBName() {
        return BName;
    }

    public Integer getBEditiontime() {
        return BEditiontime;
    }

    public String getBAuthor() {
        return BAuthor;
    }

    public void setBPosition(Integer BPosition) {
        this.BPosition = BPosition;
    }

    public void setBID(String BID) {
        this.BID = BID;
    }

    public void setBName(String BName) {
        this.BName = BName;
    }

    public void setBEditiontime(Integer BEditiontime) {
        this.BEditiontime = BEditiontime;
    }

    public void setBAuthor(String BAuthor) {
        this.BAuthor = BAuthor;
    }
}


